﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003DB RID: 987
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DisplayAvatarVec : IMessage<DisplayAvatarVec>, IMessage, IEquatable<DisplayAvatarVec>, IDeepCloneable<DisplayAvatarVec>, IBufferMessage
	{
		// Token: 0x17000CA1 RID: 3233
		// (get) Token: 0x06002C14 RID: 11284 RVA: 0x00079A95 File Offset: 0x00077C95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DisplayAvatarVec> Parser
		{
			get
			{
				return DisplayAvatarVec._parser;
			}
		}

		// Token: 0x17000CA2 RID: 3234
		// (get) Token: 0x06002C15 RID: 11285 RVA: 0x00079A9C File Offset: 0x00077C9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DisplayAvatarVecReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CA3 RID: 3235
		// (get) Token: 0x06002C16 RID: 11286 RVA: 0x00079AAE File Offset: 0x00077CAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DisplayAvatarVec.Descriptor;
			}
		}

		// Token: 0x06002C17 RID: 11287 RVA: 0x00079AB5 File Offset: 0x00077CB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarVec()
		{
		}

		// Token: 0x06002C18 RID: 11288 RVA: 0x00079AC8 File Offset: 0x00077CC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarVec(DisplayAvatarVec other) : this()
		{
			this.displayAvatarList_ = other.displayAvatarList_.Clone();
			this.isDisplay_ = other.isDisplay_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002C19 RID: 11289 RVA: 0x00079AFE File Offset: 0x00077CFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarVec Clone()
		{
			return new DisplayAvatarVec(this);
		}

		// Token: 0x17000CA4 RID: 3236
		// (get) Token: 0x06002C1A RID: 11290 RVA: 0x00079B06 File Offset: 0x00077D06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<DisplayAvatarData> DisplayAvatarList
		{
			get
			{
				return this.displayAvatarList_;
			}
		}

		// Token: 0x17000CA5 RID: 3237
		// (get) Token: 0x06002C1B RID: 11291 RVA: 0x00079B0E File Offset: 0x00077D0E
		// (set) Token: 0x06002C1C RID: 11292 RVA: 0x00079B16 File Offset: 0x00077D16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsDisplay
		{
			get
			{
				return this.isDisplay_;
			}
			set
			{
				this.isDisplay_ = value;
			}
		}

		// Token: 0x06002C1D RID: 11293 RVA: 0x00079B1F File Offset: 0x00077D1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DisplayAvatarVec);
		}

		// Token: 0x06002C1E RID: 11294 RVA: 0x00079B30 File Offset: 0x00077D30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DisplayAvatarVec other)
		{
			return other != null && (other == this || (this.displayAvatarList_.Equals(other.displayAvatarList_) && this.IsDisplay == other.IsDisplay && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002C1F RID: 11295 RVA: 0x00079B80 File Offset: 0x00077D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.displayAvatarList_.GetHashCode();
			if (this.IsDisplay)
			{
				num ^= this.IsDisplay.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002C20 RID: 11296 RVA: 0x00079BCD File Offset: 0x00077DCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002C21 RID: 11297 RVA: 0x00079BD5 File Offset: 0x00077DD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002C22 RID: 11298 RVA: 0x00079BE0 File Offset: 0x00077DE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.displayAvatarList_.WriteTo(ref output, DisplayAvatarVec._repeated_displayAvatarList_codec);
			if (this.IsDisplay)
			{
				output.WriteRawTag(104);
				output.WriteBool(this.IsDisplay);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002C23 RID: 11299 RVA: 0x00079C30 File Offset: 0x00077E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.displayAvatarList_.CalculateSize(DisplayAvatarVec._repeated_displayAvatarList_codec);
			if (this.IsDisplay)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002C24 RID: 11300 RVA: 0x00079C78 File Offset: 0x00077E78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DisplayAvatarVec other)
		{
			if (other == null)
			{
				return;
			}
			this.displayAvatarList_.Add(other.displayAvatarList_);
			if (other.IsDisplay)
			{
				this.IsDisplay = other.IsDisplay;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002C25 RID: 11301 RVA: 0x00079CC5 File Offset: 0x00077EC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002C26 RID: 11302 RVA: 0x00079CD0 File Offset: 0x00077ED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsDisplay = input.ReadBool();
					}
				}
				else
				{
					this.displayAvatarList_.AddEntriesFrom(ref input, DisplayAvatarVec._repeated_displayAvatarList_codec);
				}
			}
		}

		// Token: 0x04001175 RID: 4469
		private static readonly MessageParser<DisplayAvatarVec> _parser = new MessageParser<DisplayAvatarVec>(() => new DisplayAvatarVec());

		// Token: 0x04001176 RID: 4470
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001177 RID: 4471
		public const int DisplayAvatarListFieldNumber = 4;

		// Token: 0x04001178 RID: 4472
		private static readonly FieldCodec<DisplayAvatarData> _repeated_displayAvatarList_codec = FieldCodec.ForMessage<DisplayAvatarData>(34U, DisplayAvatarData.Parser);

		// Token: 0x04001179 RID: 4473
		private readonly RepeatedField<DisplayAvatarData> displayAvatarList_ = new RepeatedField<DisplayAvatarData>();

		// Token: 0x0400117A RID: 4474
		public const int IsDisplayFieldNumber = 13;

		// Token: 0x0400117B RID: 4475
		private bool isDisplay_;
	}
}
